Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

End in slash parent directory location #18178

Conversation

findinpath
Copy link
Contributor

Description

As discussed on #18155 (comment) the parent directory location of a file name should be ending in /

e.g. : The location scheme://userInfo@host/path/filename will return for Location.parentDirectory() method the following result scheme://userInfo@host/path/

Additional context and related issues

Release notes

(x) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Jul 7, 2023
@findinpath findinpath self-assigned this Jul 7, 2023
@findinpath findinpath requested review from findepi, electrum and dain July 7, 2023 15:12
@@ -197,7 +197,7 @@ public Location parentDirectory()
return withPath(newLocation, "");
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be inclined to allow calling this method for non-filename locations as well.
The required changes should probably be straightforward.
I'm not sure though whether it is needed.

@github-actions github-actions bot added tests:hive hive Hive connector labels Jul 7, 2023
In a table with multiple partition columns, it may happen that
there exists a file with the same name and the same value for the
least significant partition column which would lead to having the
same temporary file name prefix.
@findinpath
Copy link
Contributor Author

I'm abandoning doing the changes on this PR because the purpose itself of the PR is rather controversial.
In any case, if doing this operation would be needed, it is not the case to do this as a fix for #17966

@findinpath findinpath closed this Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed hive Hive connector
Development

Successfully merging this pull request may close these issues.

1 participant